var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');

var schema = new mongoose.Schema({
    title: String,
    content:String,
    autor :String,
    ctime:{ type: Date, default: Date.now() },
});
schema.plugin(mongoosePaginate);

module.exports = mongoose.model('News',  schema);  // Model.paginate()